import axios from './http';

export function queryVendor(name,contact){
    return axios.get('/vendor/query'+'?name='+name+'&contact='+contact)
}

export function deleteVendor(id){
    return axios.post('/vendor/delete',{id})
}

export function addVendor(vendor){
    return axios.post('/vendor/add',vendor)
}

export function updateVendor(vendor){
    return axios.post('/vendor/update',vendor)
}